lcEntAlign Home

Moves a graphic object to a reference coordinate according alignment type.

 BOOL lcEntAlign (
   HANDLE hEntity,
   int Alignment,
   double Xref,
   double Yref
 );

Parameters
hEntity
  Handle to a graphic object.
Alignment
  Alignment type. Can be one of the following values:

Mode Entity type
LC_EA_LEFT Entity's left extent goes to Xref
LC_EA_TOP Entity's top extent goes to Yref
LC_EA_RIGHT Entity's right extent goes to Xref
LC_EA_BOTTOM Entity's bottom extent goes to Yref
LC_EA_CENTER Entity's center goes to Xref, Yref
LC_EA_CENTERX Entity's center X goes to Xref
LC_EA_CENTERY Entity's center Y goes to Yref

Xref  Yref
  Reference point.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

See Also

  Code sample,   lcEntMove